import type { BaseResType } from '../baseType'

// 登录接口返回数据的类型定义
export interface LoginResType extends BaseResType {
  id: string
  token: string
  username: string
}

// 用户详情数据类型定义
export interface UserInfoDetailType {
  age: number
  createtime: string
  gender: number
  md5pswsolt: string
  password: string
  phonenumber: string
  realname: string
  role: number
  state: number
  depNo: number
  updatetime: string
  username: string
  __v: number
  _id: string
  avatar: string
  video: string
}
export interface UserInfoDetailResType extends BaseResType {
  data: UserInfoDetailType
}

export interface UserListResOfData {
  age: number
  createtime: string
  depNo: number
  gender: number
  md5pswsolt: string
  password: string
  phonenumber: string
  realname: string
  role: number
  state: number
  updatetime: string
  username: string
  avatar: string
  video: string
  __v: number
  _id: string
}

export type UserListResOfDataArr = UserListResOfData[]

export interface UserListResType extends BaseResType {
  data: UserListResOfDataArr
  totalCount: number
}

export interface AvatarFileResType extends BaseResType {
  filePath: string
}
